<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <title>正在打开</title>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
     <meta name="author" content="runoob">
    <link rel="stylesheet" href="__STATIC_URL__/static/mobile/css/weui.css" />
</head>
<style>
    body{
        width:100%;
    }
    h3{
        color: #FFFFFF;
    }
</style>
<body style="background: #ffffff;">
<section>

    <div class="container" id="container" style="margin: 0;text-align: center">
        <div class="page__bd" style="margin-top: 30%">
            <div class="weui-loadmore">
                <i class="weui-loading" style="width: 60px;height: 60px;"></i>

            </div>
            <div class="weui-msg__text-area">
                <h2 class="weui-msg__title">正在加载</h2>
                <p class="weui-msg__desc"></p>
            </div>
        </div>

    </div>
</section>
<script src="https://res.wx.qq.com/open/js/jweixin-1.2.0.js"></script>
<script>
    wx.config({
        debug: false,
        appId: "{$card['jssdk']['appId']}",
        timestamp: "{$card['jssdk']['timestamp']}",
        nonceStr: "{$card['jssdk']['nonceStr']}",
        signature: "{$card['jssdk']['signature']}",
        jsApiList: [
            'hideAllNonBaseMenuItem', 'openCard',
        ]
    });
    wx.ready(function () {


        wx.checkJsApi({
            jsApiList: [
                'openCard',
            ],
        });
        wx.openCard({
            cardList: [{
                cardId: "{$card['card']['cardId']}",
                code: "{$card['card']['code']}"
            }]// 需要打开的卡券列表
        });
    })
</script>
</body>
</html>
